package com.server.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.server.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 系统用户
 * </p>
 *
 * @author zgr
 * @since 2023-07-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_admin")
@ApiModel(value = "SysAdmin对象", description = "系统用户")
public class SysAdmin extends BaseEntity {


    private static final long serialVersionUID = -5444856218682719505L;

    @ApiModelProperty("用户名")
    @TableField("name")
    private String name;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("是否为admin账号")
    @TableField("is_admin")
    private Boolean isAdmin;

    @ApiModelProperty("状态：1启用、0禁用")
    @TableField("status")
    private Boolean status;

}
